<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Dubbo vs Spring Cloud：微服务架构的双雄对决</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .card-hover {
            transition: all 0.3s ease;
        }
        
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        
        .text-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .section-title {
            position: relative;
            padding-left: 20px;
        }
        
        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 24px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 2px;
        }
        
        .feature-icon {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 24px;
            margin-bottom: 16px;
        }
        
        .comparison-card {
            background: white;
            border-radius: 16px;
            padding: 32px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }
        
        .comparison-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        
        .mermaid {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }
        
        .drop-cap {
            float: left;
            font-size: 4em;
            line-height: 0.8;
            margin: 0.1em 0.1em 0 0;
            font-weight: 700;
            color: #667eea;
        }
        
        .highlight-box {
            background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
            border-left: 4px solid #667eea;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20">
        <div class="container mx-auto px-6">
            <div class="text-center">
                <h1 class="text-5xl md:text-6xl font-bold mb-6">
                    Dubbo vs Spring Cloud
                </h1>
                <p class="text-xl md:text-2xl mb-8 opacity-90">
                    微服务架构的双雄对决
                </p>
                <div class="flex justify-center space-x-4">
                    <div class="bg-white bg-opacity-20 backdrop-blur-lg rounded-lg px-6 py-3">
                        <i class="fas fa-network-wired mr-2"></i>
                        高性能RPC框架
                    </div>
                    <div class="bg-white bg-opacity-20 backdrop-blur-lg rounded-lg px-6 py-3">
                        <i class="fas fa-cloud mr-2"></i>
                        全栈微服务生态
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Introduction -->
    <section class="py-16">
        <div class="container mx-auto px-6">
            <div class="max-w-4xl mx-auto">
                <div class="bg-white rounded-2xl shadow-xl p-8 md:p-12">
                    <p class="text-lg leading-relaxed text-gray-700">
                        <span class="drop-cap">D</span>ubbo 和 Spring Cloud 是两种流行的微服务架构框架，各自具有不同的设计理念和功能特点，分别适用于不同的场景。在微服务架构日益普及的今天，选择合适的框架对于构建高效、可扩展的分布式系统至关重要。
                    </p>
                </div>
            </div>
        </div>
    </section>

    <!-- Architecture Comparison -->
    <section class="py-16 bg-gray-50">
        <div class="container mx-auto px-6">
            <h2 class="text-4xl font-bold text-center mb-12 text-gradient">架构对比全景图</h2>
            
            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <div class="comparison-card">
                    <div class="feature-icon">
                        <i class="fas fa-cube"></i>
                    </div>
                    <h3 class="text-2xl font-bold mb-4">Dubbo</h3>
                    <p class="text-gray-600 mb-4">阿里巴巴开源的面向服务架构（SOA）分布式服务框架</p>
                    <ul class="space-y-3">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-purple-600 mt-1 mr-3"></i>
                            <span>轻量级 RPC 框架，专注于服务治理与高性能调用</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-purple-600 mt-1 mr-3"></i>
                            <span>模块化设计，各组件可独立扩展</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-purple-600 mt-1 mr-3"></i>
                            <span>适合企业级应用的服务化改造</span>
                        </li>
                    </ul>
                </div>
                
                <div class="comparison-card">
                    <div class="feature-icon">
                        <i class="fas fa-cloud"></i>
                    </div>
                    <h3 class="text-2xl font-bold mb-4">Spring Cloud</h3>
                    <p class="text-gray-600 mb-4">基于 Spring Boot 的一整套微服务解决方案</p>
                    <ul class="space-y-3">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-purple-600 mt-1 mr-3"></i>
                            <span>完整的微服务生态系统，涵盖配置、发现、熔断等</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-purple-600 mt-1 mr-3"></i>
                            <span>与 Spring 生态无缝集成</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-purple-600 mt-1 mr-3"></i>
                            <span>适合构建复杂的云原生应用</span>
                        </li>
                    </ul>
                </div>
            </div>

            <!-- Architecture Diagram -->
            <div class="mermaid">
                graph TB
                    subgraph "Dubbo 架构"
                        A[服务消费者] -->|RPC调用| B[服务提供者]
                        B --> C[注册中心<br/>Zookeeper]
                        A --> C
                        D[监控中心] --> A
                        D --> B
                    end
                    
                    subgraph "Spring Cloud 架构"
                        E[API Gateway] --> F[服务A]
                        E --> G[服务B]
                        F --> H[Eureka<br/>注册中心]
                        G --> H
                        I[Config Server] --> F
                        I --> G
                        J[Hystrix<br/>熔断器] --> F
                        J --> G
                    end
                    
                    style A fill:#667eea,stroke:#fff,color:#fff
                    style E fill:#764ba2,stroke:#fff,color:#fff
            </div>
        </div>
    </section>

    <!-- Feature Comparison -->
    <section class="py-16">
        <div class="container mx-auto px-6">
            <h2 class="text-4xl font-bold text-center mb-12">核心特性对比</h2>
            
            <div class="grid md:grid-cols-3 gap-6">
                <!-- 服务注册与发现 -->
                <div class="card-hover bg-white rounded-xl p-6 shadow-lg">
                    <div class="text-3xl text-purple-600 mb-4">
                        <i class="fas fa-search-location"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 section-title">服务注册与发现</h3>
                    <div class="space-y-4">
                        <div>
                            <h4 class="font-semibold text-purple-600">Dubbo</h4>
                            <p class="text-sm text-gray-600">默认支持 Zookeeper，服务直连，简洁高效</p>
                        </div>
                        <div>
                            <h4 class="font-semibold text-purple-600">Spring Cloud</h4>
                            <p class="text-sm text-gray-600">抽象接口，支持 Eureka、Consul、Zookeeper 等多种实现</p>
                        </div>
                    </div>
                </div>

                <!-- 通信协议 -->
                <div class="card-hover bg-white rounded-xl p-6 shadow-lg">
                    <div class="text-3xl text-purple-600 mb-4">
                        <i class="fas fa-exchange-alt"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 section-title">通信协议</h3>
                    <div class="space-y-4">
                        <div>
                            <h4 class="font-semibold text-purple-600">Dubbo</h4>
                            <p class="text-sm text-gray-600">多协议支持，基于 Netty 的二进制 RPC，高性能低延迟</p>
                        </div>
                        <div>
                            <h4 class="font-semibold text-purple-600">Spring Cloud</h4>
                            <p class="text-sm text-gray-600">基于 HTTP/REST，使用 Feign 声明式调用</p>
                        </div>
                    </div>
                </div>

                <!-- 服务治理 -->
                <div class="card-hover bg-white rounded-xl p-6 shadow-lg">
                    <div class="text-3xl text-purple-600 mb-4">
                        <i class="fas fa-shield-alt"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 section-title">服务治理</h3>
                    <div class="space-y-4">
                        <div>
                            <h4 class="font-semibold text-purple-600">Dubbo</h4>
                            <p class="text-sm text-gray-600">内置负载均衡、熔断限流、集群容错，动态配置</p>
                        </div>
                        <div>
                            <h4 class="font-semibold text-purple-600">Spring Cloud</h4>
                            <p class="text-sm text-gray-600">全生态治理，包含配置中心、网关、链路追踪等</p>
                        </div>
                    </div>
                </div>

                <!-- 扩展性 -->
                <div class="card-hover bg-white rounded-xl p-6 shadow-lg">
                    <div class="text-3xl text-purple-600 mb-4">
                        <i class="fas fa-puzzle-piece"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 section-title">扩展性与生态</h3>
                    <div class="space-y-4">
                        <div>
                            <h4 class="font-semibold text-purple-600">Dubbo</h4>
                            <p class="text-sm text-gray-600">SPI 机制插件式扩展，专注服务治理</p>
                        </div>
                        <div>
                            <h4 class="font-semibold text-purple-600">Spring Cloud</h4>
                            <p class="text-sm text-gray-600">丰富的生态系统，与各类中间件无缝集成</p>
                        </div>
                    </div>
                </div>

                <!-- 配置部署 -->
                <div class="card-hover bg-white rounded-xl p-6 shadow-lg">
                    <div class="text-3xl text-purple-600 mb-4">
                        <i class="fas fa-cogs"></i>
                    </div>
                    <h3